﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MyAdmin/QuanLy.master" AutoEventWireup="true" CodeFile="NhaXuatBan_AM.aspx.cs" Inherits="MyAdmin_NhaXuatBan_AM" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <fieldset>
        <legend align="center"><b>Nhà Xuất Bản</b></legend>  
        <table border="0" cellspacing="0" cellpadding="0" width="100%">
        	<tr>
        		<td align="center">
                 <asp:DetailsView ID="dtvNhaXuatBan_AM" runat="server" 
        AutoGenerateRows="False" DataKeyNames="ID" DataSourceID="LQDSNhaXuatBan_AM" 
        Height="50px" Width="50%" HeaderText="Nhà Xuất Bản" 
            BorderStyle="Ridge" BackColor="White" BorderColor="White" 
            BorderWidth="2px" CellSpacing="1" CellPadding="3" GridLines="None" 
            oniteminserted="dtvNhaXuatBan_AM_ItemInserted" 
            onitemupdated="dtvNhaXuatBan_AM_ItemUpdated">
        <EditRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
        <Fields>
            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                ReadOnly="True" SortExpression="ID" />
            <asp:BoundField DataField="Ten" HeaderText="Tên Nhà Xuất Bản" 
                SortExpression="Ten" />
            <asp:CheckBoxField DataField="DaXoa" HeaderText="Đã Xóa" 
                SortExpression="DaXoa" />
            <asp:CommandField ShowInsertButton="True" ShowEditButton="True" 
                CancelText="Hủy" DeleteText="Hủy" EditText="Cập Nhật" InsertText="Thêm" 
                NewText="Thêm" UpdateText="Cập Nhật" />
        </Fields>
        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="#E7E7FF" 
                         HorizontalAlign="Center"  />
        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
    </asp:DetailsView>
        <asp:Label runat="server" Text="Label" ID="lblThongBaoDTView" ForeColor="White" Visible="false"/>

                </td>
        	</tr>
        </table><br />
    <asp:GridView ID="gvDSNhaXuatBan" runat="server" AllowPaging="True" 
        AllowSorting="True" DataKeyNames="ID" DataSourceID="LQDSNhaXuatBan_AM" 
            BackColor="White" BorderColor="#999999" BorderStyle="None" 
            BorderWidth="1px" CellPadding="3" GridLines="Vertical" Width="100%" 
            AutoGenerateColumns="False" onrowdeleted="gvDSNhaXuatBan_RowDeleted" 
            onselectedindexchanged="gvDSNhaXuatBan_SelectedIndexChanged" 
            onpageindexchanged="gvDSNhaXuatBan_PageIndexChanged" 
            onpageindexchanging="gvDSNhaXuatBan_PageIndexChanging" 
            onrowdeleting="gvDSNhaXuatBan_RowDeleting">
        <AlternatingRowStyle BackColor="#DCDCDC" />
        <Columns>
            <asp:CommandField ShowSelectButton="True" 
                CancelText="Hủy" DeleteText="Xóa" SelectText="Chọn" />
            <asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" />
            <asp:BoundField DataField="Ten" HeaderText="Tên Nhà Xuất Bản" />
            <asp:CheckBoxField DataField="DaXoa" HeaderText="Đã Xóa" />
             <asp:TemplateField>
                <ItemTemplate>
                    <asp:CheckBox ID="checkXoa" runat="server" AutoPostBack="True" />
                </ItemTemplate>
                </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#0000A9" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#000065" />
    </asp:GridView>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
	<tr>
		<td align="right">
           <asp:Label ID="lblThongBaoGridView" runat="server" ForeColor="White" Text="Label"></asp:Label>
          <asp:Button ID="XoaNhieuBUTTON" runat="server" Text="Xóa Đã Chọn" 
            onclick="XoaNhieuBUTTON_Click"  />
        </td>
	</tr>
</table>
   
    <asp:LinqDataSource ID="LQDSNhaXuatBan_AM" runat="server" 
        ContextTypeName="DataAccess_Layer.DataClasses_RetailerDataContext" 
        EnableInsert="True" EnableUpdate="True" EntityTypeName="" 
        TableName="NhaXuatBans" EnableDelete="True" 
            oninserted="LQDSHoaDon_AM_Inserted" onupdating="LQDSNhaXuatBan_AM_Updating">
    </asp:LinqDataSource>
    </fieldset>
</asp:Content>

